package com.yq.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * @author zxn
 * @date 2020-08-30
 * @description 
 */
public class Article extends Model<Article> {

    private static final long serialVersionUID = 1L;

    private Integer id;

    private String name;

    private String content;

    private String type;

    private String position;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public static final String ID = "id";

    public static final String NAME = "name";

    public static final String CONTENT = "content";

    public static final String TYPE = "type";

    public static final String POSITION = "position";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Article{" +
        "id=" + id +
        ", name=" + name +
        ", content=" + content +
        ", type=" + type +
        ", position=" + position +
        "}";
    }
}
